{
  "properties" : { },
  "id" : "496f4f4ddcb14727847aabba09a79eec",
  "script" : null,
  "groupId" : "fabfae3f0f454f16bb45486706b3d945",
  "name" : "查询告警类型列表",
  "createTime" : 1727070916508,
  "updateTime" : 1724841137865,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "list",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
var sql = """
    SELECT * FROM alarm_type
    <where>
        <if test="typeName != null and typeName != ''">
            AND TYPE_NAME LIKE  CONCAT('%',#{typeName} ,'%')
        </if>
    </where>
"""

return db.page(sql) 